/* +----------------------------------------------------------------------
| 麦沃德科技赋能开发者，助力中小企业发展 
+----------------------------------------------------------------------
| Copyright (c) 2017～2024  www.wdadmin.cn    All rights reserved.
+----------------------------------------------------------------------
| 沃德代驾系统并不是自由软件，不加密，并不代表开源，未经许可不可自由转售和商用
+----------------------------------------------------------------------
| Author: MY WORLD Team <bd@maiwd.cn>   www.wdadmin.cn
+----------------------------------------------------------------------
| 乘客端接口列表文件 开发者: 麦沃德科技-半夏
+---------------------------------------------------------------------- */

export default {
	// 用户信息
	user: {
		url: '/api/wddj/user/user_wechat/center',
		auth: true,
		method: 'GET',
	},
	// 安全中心
	security: {
		url: '/api/wddj/user/security_center/center',
		auth: true,
		method: 'GET',
	},
	// 设置行程录音
	setTravelRecording: {
		url: '/api/wddj/user/security_center/user_set_sound_recording',
		auth: true,
		method: 'POST',
	},
	// 实名认证
	authentication: {
		// 提交认证
		submit: {
			url: '/api/wddj/user/user_real_name_authentication/submit',
			auth: true,
			method: 'POST',
		},
		// 认证详情
		details: {
			url: '/api/wddj/user/user_real_name_authentication/details',
			auth: true,
			method: 'GET',
		},
	},
	// 紧急联系人
	contacts: {
		// 列表
		list: {
			url: '/api/wddj/user/emergency_contact/index',
			auth: true,
			method: 'GET',
		},
		// 列表
		details: {
			url: '/api/wddj/user/emergency_contact/details',
			auth: true,
			method: 'GET',
		},
		// 添加
		add: {
			url: '/api/wddj/user/emergency_contact/add',
			auth: true,
			method: 'POST',
		},
		// 编辑
		edit: {
			url: '/api/wddj/user/emergency_contact/edit',
			auth: true,
			method: 'POST',
		},
		// 删除
		delete: {
			url: '/api/wddj/user/emergency_contact/del',
			auth: true,
			method: 'POST',
		},
	},
	// 乘车人
	passenger: {
		// 列表
		list: {
			url: '/api/wddj/user/passenger/index',
			auth: true,
			method: 'GET',
		},
		// 列表
		details: {
			url: '/api/wddj/user/passenger/details',
			auth: true,
			method: 'GET',
		},
		// 添加
		add: {
			url: '/api/wddj/user/passenger/add',
			auth: true,
			method: 'POST',
		},
		// 编辑
		edit: {
			url: '/api/wddj/user/passenger/edit',
			auth: true,
			method: 'POST',
		},
		// 删除
		delete: {
			url: '/api/wddj/user/passenger/del',
			auth: true,
			method: 'POST',
		},
	},
	// 附近代驾
	nearbyDriver: {
		url: '/api/wddj/user/map/by_location_get_driver',
		auth: false,
		method: 'GET',
	},
	// 订单管理
	order: {
		// 预估价格
		estimatedAmount: {
			url: '/api/wddj/user/operation/cost_allocation/get_estimated_amount',
			auth: true,
			method: 'GET',
		},
		// 提交订单
		submit: {
			url: '/api/wddj/user/order/create',
			auth: true,
			method: 'POST',
		},
		// 计价规则
		pricingRules: {
			url: '/api/wddj/user/operation/cost_allocation/pricing_rules',
			auth: true,
			method: 'GET',
		},
		// 待接单数量
		pendingCount: {
			url: '/api/wddj/user/order/pending_count',
			auth: true,
			method: 'GET',
		},
		// 订单列表
		list: {
			url: '/api/wddj/user/order/index',
			auth: true,
			method: 'GET',
		},
		// 订单详情
		details: {
			url: '/api/wddj/user/order/details',
			auth: true,
			method: 'GET',
		},
		// 取消订单原因
		cancelReason: {
			url: '/api/wddj/config/cancel_order_option',
			auth: false,
			method: 'GET',
		},
		// 取消订单
		cancel: {
			url: '/api/wddj/user/order/cancel',
			auth: true,
			method: 'POST',
		},
		// 取消订单配置信息
		cancelConfig: {
			url: '/api/wddj/user/order/user_cancel_config',
			auth: true,
			method: 'GET',
		},
		// 费用疑问
		costInquiry: {
			url: '/api/wddj/user/order/cost_inquiry',
			auth: true,
			method: 'GET',
		},
		// 差价补缴
		priceDifference: {
			url: '/api/wddj/user/order/awaiting_payment',
			auth: true,
			method: 'POST',
		},
		// 评价选项
		evaluateOptions: {
			url: '/api/wddj/user/evaluation/options',
			auth: false,
			method: 'GET',
		},
		// 评价订单
		evaluate: {
			url: '/api/wddj/user/evaluation/evaluation/submit',
			auth: true,
			method: 'POST',
		},
		// 评价详情
		evaluateDetails: {
			url: '/api/wddj/user/evaluation/evaluation/details',
			auth: true,
			method: 'GET',
		},
	},
	// 协议
	agreement: {
		url: '/api/wddj/protocol/user_side_protocol/index',
		auth: false,
		method: 'GET',
	},
	// 发票管理
	invoice: {
		// 待开具订单
		order: {
			url: '/api/wddj/user/order/invoice_order',
			auth: true,
			method: 'GET',
		},
		// 抬头管理
		title: {
			// 抬头列表
			list: {
				url: '/api/wddj/invoice_title/list',
				auth: true,
				method: 'GET',
			},
			// 抬头详情
			details: {
				url: '/api/wddj/invoice_title/details',
				auth: true,
				method: 'GET',
			},
			// 添加抬头
			add: {
				url: '/api/wddj/invoice_title/add',
				auth: true,
				method: 'POST',
			},
			// 编辑抬头
			edit: {
				url: '/api/wddj/invoice_title/edit',
				auth: true,
				method: 'POST',
			},
			// 删除抬头
			delete: {
				url: '/api/wddj/invoice_title/del',
				auth: true,
				method: 'POST',
			},
			// 默认抬头
			default: {
				url: '/api/wddj/invoice_title/default_invoice_title',
				auth: true,
				method: 'GET',
			},
		},
		// 发票列表
		list: {
			url: '/api/wddj/invoice/list',
			auth: true,
			method: 'GET',
		},
		// 发票金额
		fees: {
			url: '/api/wddj/invoice/fees',
			auth: true,
			method: 'GET',
		},
		// 提交发票
		apply: {
			url: '/api/wddj/invoice/apply_for_invoice',
			auth: true,
			method: 'POST',
		},
	},
	// 优惠券管理
	coupon: {
		// 领券中心
		center: {
			url: '/api/wddj/marketing/coupon_receive/coupon_center',
			auth: true,
			method: 'GET',
		},
		// 优惠券列表-我的
		myList: {
			url: '/api/wddj/marketing/coupon_receive/my_coupon',
			auth: true,
			method: 'GET',
		},
		// 优惠券列表-首页
		indexList: {
			url: '/api/wddj/marketing/coupon/index',
			auth: false,
			method: 'GET',
		},
		// 领取优惠券
		receive: {
			url: '/api/wddj/marketing/coupon_receive/receive',
			auth: true,
			method: 'POST',
		},
	},
	// 钱包管理
	wallet: {
		// 钱包信息
		info: {
			url: '/api/wddj/user/wallet/center',
			auth: true,
			method: 'GET',
		},
		// 立即提现
		withdrawal: {
			url: '/api/wddj/user/user_wechat_withdrawal/submit',
			auth: true,
			method: 'POST',
		},
		// 提现记录
		record: {
			url: '/api/wddj/user/user_wechat_income_expenditure/index',
			auth: true,
			method: 'GET',
		},
		// 审核列表
		examineList: {
			url: '/api/wddj/user/user_wechat_withdrawal/examine_list',
			auth: true,
			method: 'GET',
		},
		// 发起转账
		transferBills: {
			url: '/api/wddj/user/user_wechat_withdrawal/transfer_bills',
			auth: true,
			method: 'POST',
		},
	},
	// 邀请管理
	invitation: {
		// 邀请信息
		information: {
			url: '/api/wddj/marketing/cashback_config/invite_users',
			auth: false,
			method: 'GET',
		},
		// 收益列表
		incomeList: {
			url: '/api/wddj/user/user_wechat_income_expenditure/complete_state_list',
			auth: true,
			method: 'GET',
		},
		// 活动规则
		agreement: {
			url: '/api/wddj/marketing/cashback_config/activity_rules',
			auth: false,
			method: 'GET',
		},
	},
};